//
//  Get_Handle_GetWaitHandleDetail_Done_Task.m
//  EpointFrame5
//
//  Created by wangzhigang on 14-2-14.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "Get_Handle_GetWaitHandleDetail_Done_Task.h"

@implementation Get_Handle_GetWaitHandleDetail_Done_Task

-(void)execute
{
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    NSString *ValidateData = [EpointBizTools getToken];
    NSString *url = self.getMobileOAWebserviceURL;
    NSString *wsNamespace = NSLocalizedString(@"Epoint_DNet_WS_NameSpace", @"");
    NSString *userguid = [userDefaults objectForKey:Epoint_User_UserGuid];
    NSString *MessageItemGuid = [params objectForKey:@"MessageItemGuid"];
    
    EpointWebServiceUtil *webserviceHelper = [[EpointWebServiceUtil alloc]initWithUrl:url namespace:wsNamespace method:@"Handle_GetWaitHandleDetail_Done"];
    NSString *ParasXml = @"<?xml version=\"1.0\" encoding=\"gb2312\"?><paras><UserGuid>%@</UserGuid><MessageItemGuid>%@</MessageItemGuid></paras>";
    ParasXml = [NSString stringWithFormat:ParasXml,userguid,MessageItemGuid];
    ParasXml = [EpointStringUtil filterXmlString:ParasXml];
    [webserviceHelper addParameterForString:@"ValidateData" value:ValidateData];
    [webserviceHelper addParameterForString:@"ParasXml" value:ParasXml];
    NSString *bs = webserviceHelper.start;
    if ([self validateXMLWS:bs]) {
        [self exeSuccessWithData:bs];
    }
}


@end
